package com.labot.dto;

import java.io.Serializable;

public class I18nDto implements Serializable {
    private static final long serialVersionUID = 3832626162173359411L;

    private Long id;
    private String key;
    private String en;
    private String es;
    private String page;
    private Boolean exist;
    
    public I18nDto() {

    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getEn() {
		return en;
	}

	public void setEn(String en) {
		this.en = en;
	}

	public String getEs() {
		return es;
	}

	public void setEs(String es) {
		this.es = es;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public Boolean getExist() {
		return exist;
	}

	public void setExist(Boolean exist) {
		this.exist = exist;
	}
    
	public boolean equals(Object obj) {
		return (obj instanceof I18nDto) && (((I18nDto)obj).getKey()).equals(this.getKey());
	}
	
	public int hashCode() {
	      return key.hashCode();
	  }
}
